﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucShippingTo.ascx.cs" Inherits="Client_UserControl_ucShippingTo" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
    .style2
    {
        width: 78px;
    }
    .style3
    {
        width: 154px;
    }
</style>

<script type="text/javascript">

</script>

Please enter your shipping information below. Items marked with an asterisk(*) are
require.
<br />
<table width="100%">
    <tr>
        <td>
            Name or Bussiness Name<font color="red">*</font>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Name or Bussiness Name is required"
                ControlToValidate="txtName" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:TextBox ID="txtName" runat="server" Width="100%"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Address<font color="red">*</font>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Address is required"
                ControlToValidate="txtAddr" Display="Dynamic" SetFocusOnError="True" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:TextBox ID="txtAddr" runat="server" Width="100%"></asp:TextBox>
        </td>
    </tr>
    <%--<tr>
        <td>
            State<font color="red">*</font>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="State is required"
                ControlToValidate="cb_state" Display="Dynamic" SetFocusOnError="True" />
        </td>
    </tr>--%>
    <%--<tr>
        <td>
            <asp:UpdatePanel ID="state" runat="server">
                <ContentTemplate>
                    <asp:DropDownList ID="cb_state" runat="server" Height="22px" Width="100%" AutoPostBack="True"
                        OnSelectedIndexChanged="cb_state_SelectedIndexChanged">
                    </asp:DropDownList>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
    </tr>--%>
    <%--<tr>
        <td style="text-align: left">
            <asp:UpdatePanel ID="update" runat="server">
                <ContentTemplate>
                    Post Code<font color="red">*</font>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Post Code is required"
                        ControlToValidate="txtPostCode" Display="Dynamic" SetFocusOnError="True" />
                    <asp:Label ID="lbthongbao" runat="server"></asp:Label>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="txtPostCode" EventName="TextChanged" />
                </Triggers>
            </asp:UpdatePanel>
        </td>
    </tr>--%>
    <%--<tr>
        <td>
            <asp:UpdatePanel ID="postcode" runat="server">
                <ContentTemplate>
                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Numbers"
                        TargetControlID="txtPostCode">
                    </asp:FilteredTextBoxExtender>
                    <asp:TextBox ID="txtPostCode" runat="server" Width="100%" MaxLength="4"
                        AutoPostBack="true"> </asp:TextBox>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
    </tr>--%>
    <tr>
        <td>
            City<font color="red">*</font>
            <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="City or Town Name is required"
                ControlToValidate="cb_city" Display="Dynamic" SetFocusOnError="True" />--%>
        </td>
    </tr>
    <tr>
        <td>
            <asp:UpdatePanel ID="city" runat="server">
                <ContentTemplate>
                    <asp:DropDownList ID="cb_city" runat="server" Height="22px" Width="100%">
                        <asp:ListItem Value="1">Hà Nội</asp:ListItem>
                        <asp:ListItem Value="2">Tp. Hồ Chí Minh</asp:ListItem>
                    </asp:DropDownList>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
    </tr>
    <tr>
        <td>
            Country
        </td>
    </tr>
    <tr>
        <td>
            <asp:TextBox ID="txtCountry" runat="server" Width="100%" Enabled="False">VietNam</asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Phone Number<font color="red">*</font>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Phone Number is required"
                ControlToValidate="txtPhone" Display="Dynamic" SetFocusOnError="True" />
            <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Phone must start with 0 (example 03XXXXXXXX or mobile 04XXXXXXXX)"
                ControlToValidate="txtPhone" ValidationExpression="(^[0]\d{9}$)|(^[0]\d{9}$)"></asp:RegularExpressionValidator>--%>
        </td>
    </tr>
    <tr>
        <td>
            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers"
                TargetControlID="txtPhone">
            </asp:FilteredTextBoxExtender>
            <asp:TextBox ID="txtPhone" runat="server" Width="100%" MaxLength="10"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label1" runat="server" Text="Email Address"></asp:Label>
            &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                ErrorMessage="Invalid Email" ControlToValidate="txtEmail" Display="Dynamic" SetFocusOnError="True"
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Visible="False">Email Address</asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:TextBox ID="txtEmail" runat="server" Width="100%"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label2" runat="server" Text="Contact Name "></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:TextBox ID="txtContactName" runat="server" Width="100%"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label3" runat="server" Text="Shipping Method "></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:TextBox ID="txtShippingMethod" runat="server" Width="100%"></asp:TextBox>
        </td>
    </tr>
    <tr align="right">
        <td style="text-align: center">
            <asp:UpdateProgress ID="updatePrgReg" runat="server">
                <ProgressTemplate>
                    <asp:Image ID="imgLoading" runat="server" ToolTip="Loading..." ImageUrl="~/images/loadingAnimation.gif"
                        Style="border-width: 0px;" />
                </ProgressTemplate>
            </asp:UpdateProgress>
        </td>
    </tr>
    <tr align="right">
        <td>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:ImageButton ID="btnNext" runat="server" Text="Next" OnClick="btnNext_Click"
                        CausesValidation="true" ImageUrl="~/Client/images/bt_next.png" ToolTip="Next" />
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnNext" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
        </td>
    </tr>
    <tr align="right">
        <td>
            <asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
        </td>
    </tr>
</table>

